home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / winvn060.arc / PCEMUL.C < prev    next >
Text File  |  1991-07-01  |  691b  |  31 lines

  1. /*---  PCEMUL.C -- This file contains routines to emulate standard
  2.  *  Unix or PC 'C' functions.
  3.  *  Necessary because the verdammt FTP Software PC/TCP routines make
  4.  *  some calls to non-Windows routines that aren't emulated in
  5.  *  Microsoft's xLIBCEW.LIB.
  6.  *
  7.  *  Mark Riordan   11 August 1990
  8.  */
  9.  
  10. #include <windows.h>
  11. #include "wvglob.h"
  12. #include <stdio.h>
  13.  
  14. /*--- function printf -------------------------------------------------
  15.  *
  16.  *  Very simple, incomplete emulation of printf.
  17.  */
  18. int
  19. printf(fmt,arg1)
  20. char *fmt;
  21. char *arg1;
  22. {
  23.    char mybuf[256];
  24.  
  25.    sprintf(mybuf,fmt,arg1);
  26.    MessageBox(hWndConf,mybuf,"printf",MB_OK);
  27.  
  28.    return(strlen(mybuf));
  29. }
  30. 
  31.